package com.gao.domain;

public class Cart {
	private int cid;
	private Product product;
	private int cartNum;
	private User user;
	
	public Cart() {
		super();
	}



	public Cart(int cid, Product product, int cartNum, User user) {
		super();
		this.cid = cid;
		this.product = product;
		this.cartNum = cartNum;
		this.user = user;
	}

	public Cart(Product product, int cartNum, User user) {
		super();
		this.product = product;
		this.cartNum = cartNum;
		this.user = user;
	}



	@Override
	public String toString() {
		return "Cart [cid=" + cid + ", product=" + product + ", cartNum=" + cartNum + ", user=" + user + "]";
	}



	public int getCid() {
		return cid;
	}



	public void setCid(int cid) {
		this.cid = cid;
	}



	public Product getProduct() {
		return product;
	}



	public void setProduct(Product product) {
		this.product = product;
	}



	public int getCartNum() {
		return cartNum;
	}



	public void setCartNum(int cartNum) {
		this.cartNum = cartNum;
	}



	public User getUser() {
		return user;
	}



	public void setUser(User user) {
		this.user = user;
	}

	
	
}
